﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Mall.aspx.cs" Inherits="MallInteractiveMap.CMSWebClient.BasicView.Mall" %>
<%@ Import Namespace="MallInteractiveMap.Language" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td>
                <div class="entryDiv">
                    <fieldset>
                        <legend><%= LanguageLoader.GetText("MALL_INFORMATION") %></legend>
                        <table class="contentMainTable, cellSpacing, entryDiv"
                            border="0">
                            <tr>
                                <td class="labelCell">
                                    <asp:Label ID="NameLable" runat="server" Text="Name" AssociatedControlID="Name" />
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="Name" MaxLength="100" CssClass="textEntry" />
                                    <asp:RequiredFieldValidator ID="NameRequired" runat="server" ControlToValidate="Name"
                                        CssClass="failureNotification" ErrorMessage="User Name is required." Text="*"
                                        SetFocusOnError="true" ToolTip="User Name is required." ValidationGroup="MallValidationGroup"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="labelCell">
                                    <asp:Label ID="LogoLable" runat="server" Text="Logo" AssociatedControlID="fuLogo" />
                                </td>
                                <td>
                                    <asp:FileUpload ID="fuLogo" runat="server" CssClass="textEntry" />
                                    <MIMCtl:FileUploadTypeValidator runat="server" CssClass="failureNotification" ControlToValidate="fuLogo"
                                        ID="fuFileType" />
                                </td>
                            </tr>
                            <tr>
                                <td class="labelCell">
                                    <asp:Label ID="AddressLable" runat="server" Text="Address" AssociatedControlID="Address" />
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="Address" TextMode="MultiLine" CssClass="textEntryMultiline"
                                        Rows="2" />
                                    <asp:RequiredFieldValidator ID="AddressRequired" runat="server" ControlToValidate="Address"
                                        CssClass="failureNotification" ErrorMessage="User Name is required." Text="*"
                                        SetFocusOnError="true" ToolTip="User Name is required." ValidationGroup="MallValidationGroup"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="labelCell">
                                    <asp:Label ID="TelephoneLable" runat="server" Text="Telephone" AssociatedControlID="Telephone" />
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="Telephone" MaxLength="50" CssClass="textEntry" />
                                </td>
                            </tr>
                            <tr>
                                <td class="labelCell">
                                    <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Email" runat="server" MaxLength="50" CssClass="textEntry"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                                        CssClass="failureNotification" ErrorMessage="Email is required." Text="*"
                                        SetFocusOnError="true" ToolTip="Email is required." ValidationGroup="MallValidationGroup"></asp:RequiredFieldValidator>
                                    <asp:RegularExpressionValidator runat="server" ID="revEmail" ControlToValidate="Email"
                                        ErrorMessage="Enter a valid email address." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                        SetFocusOnError="true" Text="*" ValidationGroup="MallValidationGroup" ToolTip="Enter a valid email address."
                                        CssClass="failureNotification" />
                                </td>
                            </tr>
                            <tr>
                                <td class="labelCell">
                                    <asp:Label ID="ContactPersonLabel" runat="server" Text="Contact Person" AssociatedControlID="ContactPerson" />
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="ContactPerson" MaxLength="100" CssClass="textEntry" />
                                </td>
                            </tr>
                            <tr>
                                <td class="labelCell">
                                    <asp:Label ID="DescriptionLable" runat="server" Text="Description" AssociatedControlID="Description" />
                                </td>
                                <td>
                                    <asp:TextBox runat="server" ID="Description" TextMode="MultiLine" Rows="3" CssClass="textEntryMultiline" />
                                </td>
                            </tr>
                        </table>
                    </fieldset>
                    <p class="saveButton">
                        <asp:Button ID="SaveMall" runat="server" Width="80px" Text="Save" OnClick="UpdateProfileButton_Click"
                            ValidationGroup="MallValidationGroup" />
                    </p>
                </div>
            </td>
            <td align="left" valign="top" runat="server" id="imgCell" visible="false" style=" width:30%;">
                <asp:Label runat="server" ID="LogoDisplayLabel" Text="Logo" />
                <br />
                <div>
                    <asp:Image CssClass="logoDisplay" runat="server" ID="imgLogo" ImageUrl="~/Handler/ImageHandler.ashx" />
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
